import {
	defineStore
} from 'pinia';
import {
	reactive,
	toRefs
} from 'vue';


export const useUserStore = defineStore('user', () => {
	const state = reactive({
		phone: uni.getStorageSync('phone') || '',
		userId: uni.getStorageSync('user_id') || ''
	});

	return {
		...toRefs(state)
	}
});